package com.sdk.springbootadvancedsearch.domain.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;

@Data
public class QueryRequest {
    @ApiModelProperty("查询条件")
    @Valid
    private List<FilterCondition> filters = new ArrayList<>();
    @ApiModelProperty("排序条件")
    @Valid
    private List<SortCondition> sorts = new ArrayList<>();
    @ApiModelProperty("需要查询的字段列表(实体类字段名)")
    private List<String> selectFields = new ArrayList<>();
    private Integer page = 1;
    private Integer pageSize = 10;
    /**
     * 逻辑模式：and(默认) 或 or
     */
    private String logicMode = "and";
}
